<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="js/jqplot/jquery.jqplot.min.css" />
<link type="text/css" rel="stylesheet" href="js/util/util.css">
<style type="text/css">

.csv{
	background-color:#3bb3e0;
	padding:10px;
	position:relative;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	float:right;
	border: solid 1px #186f8f;
	background-image: linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	background-image: -o-linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	background-image: -moz-linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	background-image: -webkit-linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	background-image: -ms-linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	background-image: -webkit-gradient(
	linear,
	left bottom,
	left top,
	color-stop(0, rgb(44,160,202)),
	color-stop(1, rgb(62,184,229))
	);
	-webkit-box-shadow: inset 0px 1px 0px #7fd2f1, 0px 1px 0px #fff;
	-moz-box-shadow: inset 0px 1px 0px #7fd2f1, 0px 1px 0px #fff;
	box-shadow: inset 0px 1px 0px #7fd2f1, 0px 1px 0px #fff;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
}
</style>
<title>评论反馈图</title>
</head>
<body>
<body>

<div id="sign"><h1>数据加载中，请稍等........</h1></div>
    <!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
    <div id="main" style="width:100%;height:600px"></div>
    
      <a id="exportCsv"  class="csv" href="javascript:;">导出数据</a>
      <a id="exportCommentText"  class="csv" href="javascript:;">导出评论内容</a>
</body>

<script type="text/javascript" src="js/jqplot/jquery.min.js"></script>
<script type="text/javascript" src="resources/js/echarts/echarts.min.js"></script>
  <script type="text/javascript">
  
  //导出csv
  function exportCsv(obj){
        //title ["","",""]
        var title = obj.title;
        //titleForKey ["","",""]
        var titleForKey = obj.titleForKey;
        var data = obj.data;
        var str = [];
        str.push(obj.title.join(",")+"\n");
        for(var i=0;i<data.length;i++){
            var temp = [];
            for(var j=0;j<titleForKey.length;j++){
                temp.push(data[i][titleForKey[j]]);
         }
         str.push(temp.join(",")+"\n");
     }
     var uri = 'data:text/csv;charset=utf-8,' + encodeURIComponent(str.join(""));  
     var downloadLink = document.createElement("a");
     downloadLink.href = uri;
     downloadLink.download = "export.csv"; 
     document.body.appendChild(downloadLink);
     downloadLink.click();
     document.body.removeChild(downloadLink); 
  }
 
  //_data=[{"commentQuestions":["1","2"]},{"addCommentNum":0,"commentGroupNum":"7:8","stuNum":"222015321081001","groupNum":"9","userName":"杨骄","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"37","commentSingleNum":"36:38:39:40","email":"948442842@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:15","stuNum":"222015321081089","groupNum":"14","userName":"朱芮","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"66","commentSingleNum":"67:68:69:70:71","email":"969144078@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:2","stuNum":"222015321081033","groupNum":"3","userName":"马灵娜","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"12","commentSingleNum":"11:13:14:15","email":"1282154851@qq.com"},{"addCommentNum":0,"commentGroupNum":"8:9","stuNum":"222015321081039","groupNum":"7","userName":"鄢然","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"31","commentSingleNum":"32:33:34:35","email":"979898130@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:12","stuNum":"222015321081092","groupNum":"11","userName":"任伊灵","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"50","commentSingleNum":"46:47:48:49","email":"492373149@qq.com"},{"addCommentNum":0,"commentGroupNum":"5:6","stuNum":"222015321081051","groupNum":"4","userName":"瞿碧玉","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"17","commentSingleNum":"16:18:19:20","email":"825513310@qq.com"},{"addCommentNum":0,"commentGroupNum":"14:15","stuNum":"222015321081056","groupNum":"13","userName":"严峻","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"58","commentSingleNum":"56:57:59:60","email":"513212883@qq.com"},{"addCommentNum":0,"commentGroupNum":"11:12","stuNum":"222015321081060","groupNum":"10","userName":"罗涛","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"42","commentSingleNum":"41:43:44:45","email":"1020033146@qq.com"},{"addCommentNum":0,"commentGroupNum":"11:12","stuNum":"222015321081087","groupNum":"10","userName":"林溢娴","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"46","commentSingleNum":"47:48:49:50","email":"1527230512@qq.com"},{"addCommentNum":0,"commentGroupNum":"14:15","stuNum":"222015321081076","groupNum":"13","userName":"何清华","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"57","commentSingleNum":"56:58:59:60","email":"2253790846@qq.com"},{"addCommentNum":0,"commentGroupNum":"2:3","stuNum":"222015321081028","groupNum":"1","userName":"黎麦琪","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"3","commentSingleNum":"1:2:4:5","email":"569379956@qq.com"},{"addCommentNum":0,"commentGroupNum":"11:12","stuNum":"222015321081066","groupNum":"10","userName":"谭淦露","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"45","commentSingleNum":"41:42:43:44","email":"2425734717@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:6","stuNum":"222015321081038","groupNum":"5","userName":"刘琳琳","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"21","commentSingleNum":"22:23:24:25","email":"1556541323@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:9","stuNum":"222015321081017","groupNum":"8","userName":"林悦婧","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"33","commentSingleNum":"31:32:34:35","email":"1339980826@qq.com"},{"addCommentNum":0,"commentGroupNum":"5:6","stuNum":"222015321081048","groupNum":"4","userName":"陈娅仙","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"15","commentSingleNum":"11:12:13:14","email":"2219521954@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:14","stuNum":"222015321081072","groupNum":"15","userName":"景雪","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"69","commentSingleNum":"66:67:68:70:71","email":"1164352067@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:14","stuNum":"222015321081058","groupNum":"15","userName":"徐亚围","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"68","commentSingleNum":"66:67:69:70:71","email":"1044390949@qq.com"},{"addCommentNum":0,"commentGroupNum":"8:9","stuNum":"222015321081037","groupNum":"7","userName":"谭笑盈","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"30","commentSingleNum":"26:27:28:29","email":"896018398@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:6","stuNum":"222015321081005","groupNum":"5","userName":"苏鑫","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"18","commentSingleNum":"16:17:19:20","email":"842509629@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:3","stuNum":"222015321081002","groupNum":"2","userName":"师同心","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"6","commentSingleNum":"7:8:9:10","email":"1353835713@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:14","stuNum":"222015321081090","groupNum":"15","userName":"金卓","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"71","commentSingleNum":"66:67:68:69:70","email":"369137454@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:11","stuNum":"222015321081100","groupNum":"12","userName":"郭朋伟","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"54","commentSingleNum":"51:52:53:55","email":"1979930865@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:3","stuNum":"222015321081042","groupNum":"2","userName":"杨帆","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"9","commentSingleNum":"6:7:8:10","email":"441194429@qq.com"},{"addCommentNum":0,"commentGroupNum":"5:6","stuNum":"222015321081045","groupNum":"4","userName":"张庆","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"14","commentSingleNum":"11:12:13:15","email":"1379323753@qq.com"},{"addCommentNum":0,"commentGroupNum":"14:15","stuNum":"222015321081063","groupNum":"13","userName":"莫玉飞","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"59","commentSingleNum":"56:57:58:60","email":"1103454424@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:14","stuNum":"222015321081098","groupNum":"15","userName":"陈婷","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"70","commentSingleNum":"66:67:68:69:71","email":"643276990@qq.com"},{"addCommentNum":1,"commentGroupNum":"7:9","stuNum":"222015321081008","groupNum":"8","userName":"蔡林","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"32","commentSingleNum":"31:33:34:35","email":"2287668550@qq.com"},{"addCommentNum":0,"commentGroupNum":"8:9","stuNum":"222015321081014","groupNum":"7","userName":"高美晨","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"28","commentSingleNum":"26:27:29:30","email":"771569860@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:5","stuNum":"222015321210009","groupNum":"6","userName":"刘向阳","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"26","commentSingleNum":"27:28:29:30","email":"798516465@qq.com"},{"addCommentNum":0,"commentGroupNum":"5:6","stuNum":"222015321081050","groupNum":"4","userName":"廖曦","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"16","commentSingleNum":"17:18:19:20","email":"603508187@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:8","stuNum":"222015321081024","groupNum":"9","userName":"麦尔哈巴·吾舒尔","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"40","commentSingleNum":"36:37:38:39","email":"2621944056@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:11","stuNum":"222015321081057","groupNum":"12","userName":"冯杨","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"53","commentSingleNum":"51:52:54:55","email":"991577126@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:11","stuNum":"222015321081096","groupNum":"12","userName":"邹芷璇","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"55","commentSingleNum":"51:52:53:54","email":"1558770612@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:8","stuNum":"222015321081010","groupNum":"9","userName":"王龙","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"38","commentSingleNum":"36:37:39:40","email":"1443426628@qq.com"},{"addCommentNum":0,"commentGroupNum":"2:3","stuNum":"222015321081032","groupNum":"1","userName":"冉瑜琳","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"4","commentSingleNum":"1:2:3:5","email":"957971829@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:8","stuNum":"222015321081011","groupNum":"9","userName":"秦楠","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"39","commentSingleNum":"36:37:38:40","email":"531122709@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:14","stuNum":"222015321081067","groupNum":"15","userName":"闫丹丹","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"67","commentSingleNum":"66:68:69:70:71","email":"1412882213@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:12","stuNum":"222015321081102","groupNum":"11","userName":"黄敏","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"49","commentSingleNum":"46:47:48:50","email":"1804626564@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:5","stuNum":"222015321081046","groupNum":"6","userName":"李一莹","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"25","commentSingleNum":"21:22:23:24","email":"1103864338@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:15","stuNum":"222015321081064","groupNum":"14","userName":"艾散江","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"65","commentSingleNum":"61:62:63:64","email":"491421141@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:5","stuNum":"222015321081012","groupNum":"6","userName":"李东林","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"23","commentSingleNum":"21:22:24:25","email":"1506471130@qq.com"},{"addCommentNum":0,"commentGroupNum":"8:9","stuNum":"222015321081004","groupNum":"7","userName":"李星芮","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"27","commentSingleNum":"26:28:29:30","email":"1759573236@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:2","stuNum":"222015321081030","groupNum":"3","userName":"梁雨菡","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"11","commentSingleNum":"12:13:14:15","email":"2441419452@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:6","stuNum":"222015321081018","groupNum":"5","userName":"刘素琴","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"20","commentSingleNum":"16:17:18:19","email":"1016277823@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:11","stuNum":"222015321081061","groupNum":"12","userName":"屈奕池","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"52","commentSingleNum":"51:53:54:55","email":"602069228@qq.com"},{"addCommentNum":0,"commentGroupNum":"2:3","stuNum":"222015321081034","groupNum":"1","userName":"任雪梅","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"5","commentSingleNum":"1:2:3:4","email":"1348736550@qq.com"},{"addCommentNum":0,"commentGroupNum":"2:3","stuNum":"222015321081022","groupNum":"1","userName":"岳姝颖","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"2","commentSingleNum":"1:3:4:5","email":"759066364@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:9","stuNum":"222015321081040","groupNum":"8","userName":"王心蕊","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"36","commentSingleNum":"37:38:39:40","email":"2282171396@qq.com"},{"addCommentNum":0,"commentGroupNum":"11:12","stuNum":"222015321081065","groupNum":"10","userName":"范涛","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"43","commentSingleNum":"41:42:44:45","email":"179358143@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:15","stuNum":"222015321081099","groupNum":"14","userName":"汤心悦","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"62","commentSingleNum":"61:63:64:65","email":"1392469141@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:15","stuNum":"222015321081077","groupNum":"14","userName":"黄金环","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"63","commentSingleNum":"61:62:64:65","email":"1015498223@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:9","stuNum":"222015321081029","groupNum":"8","userName":"任梦圆","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"34","commentSingleNum":"31:32:33:35","email":"824871244@qq.com"},{"addCommentNum":0,"commentGroupNum":"8:9","stuNum":"222015321081031","groupNum":"7","userName":"黄杉","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"29","commentSingleNum":"26:27:28:30","email":"2696211730@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:5","stuNum":"222015321081020","groupNum":"6","userName":"曾淋莎","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"24","commentSingleNum":"21:22:23:25","email":"463536281@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:12","stuNum":"222015321081055","groupNum":"11","userName":"唐平","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"48","commentSingleNum":"46:47:49:50","email":"542098157@qq.com"},{"addCommentNum":0,"commentGroupNum":"5:6","stuNum":"222015321081043","groupNum":"4","userName":"日依扎·沙拉依汉","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"13","commentSingleNum":"11:12:14:15","email":"1620051420@qq.com"},{"addCommentNum":1,"commentGroupNum":"2:3","stuNum":"222015321081015","groupNum":"1","userName":"杨秋月","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"1","commentSingleNum":"2:3:4:5","email":"673464858@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:11","stuNum":"222015321081095","groupNum":"12","userName":"杜思麒","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"56","commentSingleNum":"57:58:59:60","email":"939677570@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:12","stuNum":"222015321081062","groupNum":"11","userName":"张铭","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"51","commentSingleNum":"52:53:54:55","email":"1003778396@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:2","stuNum":"222015321081013","groupNum":"3","userName":"马金磊","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"10","commentSingleNum":"6:7:8:9","email":"1836946101@qq.com"},{"addCommentNum":0,"commentGroupNum":"10:12","stuNum":"222015321081080","groupNum":"11","userName":"车璐","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"47","commentSingleNum":"46:48:49:50","email":"3295235852@qq.com"},{"addCommentNum":0,"commentGroupNum":"13:15","stuNum":"222015321081094","groupNum":"14","userName":"徐红","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"64","commentSingleNum":"61:62:63:65","email":"2833554308@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:3","stuNum":"222015321081021","groupNum":"2","userName":"白子颀","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"7","commentSingleNum":"6:8:9:10","email":"987088174@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:6","stuNum":"222015321081049","groupNum":"5","userName":"秦乐","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"22","commentSingleNum":"21:23:24:25","email":"89527019@qq.com"},{"addCommentNum":0,"commentGroupNum":"4:6","stuNum":"222015321081009","groupNum":"5","userName":"王奎","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"19","commentSingleNum":"16:17:18:20","email":"2573192844@qq.com"},{"addCommentNum":0,"commentGroupNum":"11:12","stuNum":"222015321081075","groupNum":"10","userName":"赵冰雪","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"44","commentSingleNum":"41:42:43:45","email":"1002460376@qq.com"},{"addCommentNum":0,"commentGroupNum":"14:15","stuNum":"222015321081079","groupNum":"13","userName":"严红韵","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"60","commentSingleNum":"56:57:58:59","email":"848057825@qq.com"},{"addCommentNum":0,"commentGroupNum":"14:15","stuNum":"222015321081070","groupNum":"13","userName":"孙丹","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"61","commentSingleNum":"62:63:64:65","email":"1977349366@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:9","stuNum":"222015321081035","groupNum":"8","userName":"王雪梅","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"35","commentSingleNum":"31:32:33:34","email":"1327530135@qq.com"},{"addCommentNum":0,"commentGroupNum":"7:8","stuNum":"222015321081047","groupNum":"9","userName":"莱丽古丽·热依木","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"41","commentSingleNum":"42:43:44:45","email":"1186214404@qq.com"},{"addCommentNum":0,"commentGroupNum":"1:3","stuNum":"222015321081023","groupNum":"2","userName":"陈沁媛","totalScore":"0","noFbCount":0,"1":"0","2":"0","clickNumOfEvent":0,"singleNum":"8","commentSingleNum":"6:7:9:10","email":"990457071@qq.com"}];
 

  $(document).ready(function(){
  // 基于准备好的dom，初始化echarts实例   
//var data =[{"name":"蔡林","id":"a.wCrfPGxBu1xbCkFe"},{"name":"王雪梅","id":"a.UsKvmNuj2uefvD8t"},{"name":"任梦圆","id":"a.o4zSHZzhm3aYPG5Z"},{"name":"王心蕊","id":"a.La7mDukNWjbLvEOg"},{"name":"林悦婧","id":"a.aVZ1yTl62rhX6u9A"}];
//var data=[{"addCommentNum":2,"clickNumOfEvent":3,"userName":"杨骄","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"朱芮","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"马灵娜","totalScore":"2","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"鄢然","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"任伊灵","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"瞿碧玉","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"严峻","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":2,"userName":"罗涛","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"林溢娴","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"何清华","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"黎麦琪","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"谭淦露","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"刘琳琳","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"林悦婧","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"陈娅仙","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"景雪","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"徐亚围","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"谭笑盈","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"苏鑫","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"师同心","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"金卓","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"郭朋伟","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"杨帆","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"张庆","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"莫玉飞","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"陈婷","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"蔡林","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"高美晨","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"刘向阳","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"廖曦","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"麦尔哈巴·吾舒尔","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"冯杨","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"邹芷璇","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"王龙","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"冉瑜琳","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"秦楠","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"闫丹丹","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"黄敏","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"李一莹","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"艾散江","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"李东林","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"李星芮","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"梁雨菡","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"刘素琴","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"屈奕池","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"任雪梅","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"岳姝颖","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"王心蕊","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"范涛","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"汤心悦","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"黄金环","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"任梦圆","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"黄杉","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"曾淋莎","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"唐平","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"日依扎·沙拉依汉","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":1,"clickNumOfEvent":10,"userName":"杨秋月","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"杜思麒","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"张铭","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"马金磊","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"车璐","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"徐红","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"白子颀","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"秦乐","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"王奎","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"赵冰雪","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"严红韵","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"孙丹","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"王雪梅","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"莱丽古丽·热依木","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10},{"addCommentNum":10,"clickNumOfEvent":10,"userName":"陈沁媛","totalScore":"10","dimScore":[{"1":"10"},{"2":"10"}],"noFbCount":10}];
	//获取小组名
	var url = window.location+'';
	var activityId =url.split("?")[1];
	var courseId=url.split("?")[2];
	//获取数据String activityId,String courseId
	var data=[];
	var _addCommentNum=[];
	var _clickNumOfEvent=[];
	var _user=[];
	var _totalScore=[];
	var _clickNumOfEvent=[];
	var _noFbCount=[];
	var _title=["学号","姓名","小组作业组号","小组作业互评组号","个人作业编号","个人作业互评号","邮箱","反馈次数","查看图表次数","总分","未收到的反馈次数"];
	 var _titleForKey=["stuNum","userName","groupNum","commentGroupNum","singleNum","commentSingleNum","email","addCommentNum","clickNumOfEvent","totalScore","noFbCount"];
	 var _title_=["学号","姓名","评论内容","评论类别","得分","评论对象姓名"];
	 var _titleForKey_=["stunum","name","text","type","score","commenterName"];
	var start=function(){
		async: false,
		$.ajax({
    		url:'/pad/experiment/getCourseReplyInfo?activityId='+activityId+'&courseId='+courseId,
    		method:'GET',
    		success:function(data){
    			
    			 for(var i=0;i<data.length;i++) {
    		        	
    		        	_addCommentNum.push(data[i].addCommentNum);
    		        	_clickNumOfEvent.push(data[i].clickNumOfEvent);
    		        	_user.push(data[i].userName);
    		        	_totalScore.push(data[i].totalScore);
    		        	_noFbCount.push(data[i].noFbCount);
      	
    		     } 
    			 var myChart = echarts.init(document.getElementById('main'));
    		        // 使用刚指定的配置项和数据显示图表。
    		        myChart.setOption(option);
    		        $("#sign").hide();//隐藏提示
    		        var commentQuestions=data[0].commentQuestions;
    		        if(commentQuestions.length>0){
    		         for(var i=0;i<commentQuestions.length;i++){
    		        	 _title.push(commentQuestions[i]);
    		        	 _titleForKey.push(commentQuestions[i]);
    		        	 _title.push(commentQuestions[i]+'的次数');
    		        	 _titleForKey.push(commentQuestions[i]+'的次数');
    		         }
    		        }
    		          //删除第一个类别
    		          data.shift();  
    		          document.getElementById("exportCsv").onclick = function(){
    		                  exportCsv({
    		                      title:_title,
    		                      titleForKey:_titleForKey,
    		                      data:data   
    		                  });
    		             }
    		         
    		}
    	});
	}
    	
	 document.getElementById("exportCommentText").onclick = function(){
		 async: false,
			$.ajax({
	    		url:'/pad/experiment/getCommentText?activityId='+activityId+'&courseId='+courseId,
	    		method:'GET',
	    		success:function(data){
	    			 exportCsv({
	    	             title:_title_,
	    	             titleForKey:_titleForKey_,
	    	             data:data   
	    	         });    
	    		         
	    		}
        
    });
	 }

start();

      
        // 指定图表的配置项和数据
        var option = {
            title: {
                text: '评论反馈图'
            },
            tooltip: {},
            legend: {
                data:['发表评论条数',"评论未收到反馈条数","查看群体感知图次数","获得反馈总分（根据评论）"]
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            magicType: {show: true, type: ['line', 'bar']},  
            calculable: true,  
            xAxis: {
            	interval:0  ,
            	type : 'category',
                data: _user
            },
            yAxis: {},
            series: [{
                name: '发表评论条数',
                type: 'bar',
                data: _addCommentNum
            },
            {
            	  name: '评论未收到反馈条数',
                type: 'bar',
                data: _noFbCount
          	
          },
            {
            	  name: '查看群体感知图次数',
                  type: 'bar',
                  data: _clickNumOfEvent
            	
            },
            {
          	  name: '获得反馈总分（根据评论）',
                type: 'bar',
                data: _totalScore
          	
          }]
        };
       
  });
    </script>


</body>
</html>